﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dapper.Contrib.Extensions;

namespace Weight.Model
{
    /// <summary>
    /// 称重字段实体类
    /// </summary>
    [Table("WeightField")]
    public class WeightFieldEntity
    {
        /// <summary>
        /// 编号
        /// </summary>
        [ExplicitKey]
        public string Id { get; set; }

        /// <summary>
        /// 字段
        /// </summary>
        public string Field { get; set; }

        /// <summary>
        /// 别名
        /// </summary>
        public string Alias { get; set; }

        /// <summary>
        /// 字段类型
        /// </summary>
        public string FieldType { get; set; }

        /// <summary>
        /// 是否必填
        /// </summary>
        public bool Requird { get; set; }

        /// <summary>
        /// 是否保留
        /// </summary>
        public bool Reserve { get; set; }

        /// <summary>
        /// 默认值
        /// </summary>
        public string DefaultVal { get; set; }

        /// <summary>
        ///行位置
        /// </summary>
        public int RowPos { get; set; }

        /// <summary>
        /// 列 位置
        /// </summary>
        public int ColPos { get; set; }

       /// <summary>
       /// 页数
       /// </summary>
        public int Page { get; set; }

        /// <summary>
        /// 称重列表是否展示
        /// </summary>
        public bool IsWeightShow { get; set; }

        /// <summary>
        /// 称重列表排序
        /// </summary>
        public int WeightShowOrder { get; set; }

        /// <summary>
        /// 查询列表是否展示
        /// </summary>
        public bool IsQueryShow { get; set; }

        /// <summary>
        /// 查询列表排序
        /// </summary>
        public int QueryShowOrder { get; set; }

        /// <summary>
        /// 上传标记
        /// </summary>
        public int UploadFlag { get; set; }

        /// <summary>
        /// 更新标记
        /// </summary>
        public int UpdateFlag { get; set; }
    }
}
